package P123;

public class HardDisk {
    private int amount;

    public HardDisk() {
    }

    public HardDisk(int amount) {
        this.amount = amount;
    }

    /**
     * 获取
     * @return amount
     */
    public int getAmount() {
        return amount;
    }

    /**
     * 设置
     * @param amount
     */
    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String toString() {
        return "HardDisk{amount = " + amount + "}";
    }
}
